package com.yby6.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yby6.system.domain.SysLog;

import java.util.List;

/**
 * ClassName: Loginfo
 * Description: 杨不易网站 :www.yangbuyi.top
 * date: 2021/5/12
 *
 * @author TeouBle
 * @author yangbuyi
 * @since JDK 1.8
 **/

public interface SysLogService extends IService<SysLog> {


    int insert (SysLog record);

    /**
     * 分页查询系统日志集合
     *
     * @param sysLog
     * @return
     */
    List<SysLog> getLogByPage (SysLog sysLog);

    /**
     * 根据Id查询系统日志集合
     *
     * @param id
     * @return
     */
    SysLog getLogById (Long id);

    /**
     * 根据Id删除系统日志集合
     *
     * @param id
     * @return
     */
    int deleteById (Long[] id);

    /**
     * 清空全部日志
     * @return
     */
    int deleteAll ();

}

